package lium.lbs.lbsim.adapter

import android.support.v4.content.ContextCompat
import android.widget.ImageView
import android.widget.TextView
import com.buz.hjcdriver.bean.GroupMemberBean
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.BaseViewHolder
import com.lmlibrary.view.CircleImageView
import lium.lbs.lbsim.R
import lium.lbs.lbsim.activity.GroupMemberListActivity

class GroupMemberOtherAdapter : BaseQuickAdapter<GroupMemberBean, BaseViewHolder>(R.layout.item_groupmember_grid){
    override fun convert(helper: BaseViewHolder?, item: GroupMemberBean?) {

        (mContext as GroupMemberListActivity).displayImage(com.lmlibrary.Constants.Host_Pic + item?.head,R.drawable.jmui_head_icon,helper?.getView<ImageView>(R.id.group_member_header))
        helper?.getView<TextView>(R.id.group_member_name)?.setTextColor(ContextCompat.getColor(mContext,R.color.colorPrimary))
        helper?.getView<TextView>(R.id.group_member_name)?.setText(item?.name)
    }
}